import os
import shutil # 系统自带

# shutil.copyfile('当前目录下的某文件"test.txt"',r'完整的目标路径及文件名')
# shutil.move('','')
# shutil.remove('','')
# shutil.copytree('当前路径','目标路径')

# shutil.copyfile("test.txt",r"C:\pythonFiles\pythonProject\expr0\test_copy.txt")    # 拷贝当前工作目录下的test.txt至C:\pythonFiles\pythonProject\expr0
# 目录不存在会出错
# shutil.move("test - 副本.txt",r"C:\pythonFiles\pythonProject\expr0\test - 副本_copy.txt")        # 将当前工作目录下的test.txt文件移至C:\pythonFiles\pythonProject\expr0test_copy.txt
# os.remove(r"C:\pythonFiles\pythonProject\expr0\test_copy.txt")                               # 删除指定的文件
shutil.copytree(r"C:\pythonFiles\pythonProject\expr0",r"C:\pythonFiles\pythonProject\expr11") # 将前目录下的所有，复制到新路径下
# 会自动创建新目录